@media (min-width: 576px) {
  .testimonial-section .container {
    justify-content: center;
  }

  .testimonial-container {
    margin: 0 auto;
    max-width: 70rem;
    /* s:max-w-[70rem] */
    align-items: center;
  }

  .testimonial-quote {
    text-align: center;
  }

  .testimonial-cite {
    text-align: center;
  }
}

@media (min-width: 992px) {
  .testimonial-container {
    max-width: 100rem;
    /* l:max-w-[100rem] */
    gap: 3.75rem;
    /* l:gap-y-60 */
  }
}

@media (max-width: 768px) {
  .testimonial-quote {
    font-size: 2rem;
  }

  .testimonial-container {
    gap: 1rem;
  }

  .headerLogo {
    opacity: 0;
  }

  header.scrolled .headerLogo {
    opacity: 1;
  }
}

@media (max-width: 576px) {
  .testimonial-quote {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .hero-image-section {
    height: 50vh;
  }
}

@media (max-width: 992px) {
  .features-heading {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .features-heading {
    font-size: 2.5rem;
  }

  .btn {
    --font-size: 0.9rem;
    --height: 2.2em;
    --padding-left: 0.4em;
    --padding-right: 0.4em;
  }
}

@media (max-width: 576px) {
  .features-heading {
    font-size: 2rem;
  }

  .features-section {
    padding: 60px 0;
  }

  .btn {
    --font-size: 0.85rem;
    --height: 2em;
    --gap-x: 2.2em;
  }
}

/* Responsive breakpoints and fixes */

/* Base tweaks */
:root {
  --container-pad: 1rem;
}

/* Overlay close button z-index above mask */
.menu-overlay__mask {
  position: absolute;
  z-index: 1040;
}
.menu-overlay__mask .mm-btn {
  z-index: 1041;
}

/* Make overlay content scrollable on small screens */
@media (max-width: 991.98px) {
  .menu-overlay__mask {
    align-items: flex-start !important;
  }
  .menu-overlay__mask .container {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }
}

/* Header spacing on small screens */
@media (max-width: 649px) {
  .site-max {
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
  }
  .py-30 {
    padding-top: 1rem;
    padding-bottom: 0.75rem;
  }
  .h-25 {
    height: 2rem;
  }
}

/* Typography scaling */
@media (max-width: 575.98px) {
  .features-heading {
    font-size: 2.25rem;
  }
  .testimonial-quote {
    font-size: 2.25rem;
  }
  .hero-banner .btn__content {
    gap: 2rem;
  }
}

/* Cards grid spacing */
@media (max-width: 991.98px) {
  .cards-section h2 {
    font-size: 3rem;
  }
}

/* Split section image ratio correction */
@media (max-width: 991.98px) {
  .split-section .position-relative[style*="padding-top: 125%"] {
    padding-top: 75% !important;
  }
}

/* Fluid typography for consistent scaling */
.features-heading {
  font-size: clamp(2.1rem, 4vw, 5rem);
  line-height: 1.1;
}

/* Hero title scaling */
.hero-banner .features-heading {
  font-size: clamp(2.75rem, 6vw, 3rem);
}

/* Testimonial quote and cite scaling */
.testimonial-quote {
  font-size: clamp(1.5rem, 4.5vw, 5rem);
  line-height: 1.05;
}
.testimonial-cite {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
}

/* Split section heading override to match features-heading scale */
.split-section .features-heading {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1.1;
}

/* Card titles */
.cards-section a h2 {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.1;
}

/* Footer links scaling 
.footer-link {
  font-size: clamp(1.5rem, 1.2vw, 1.5rem);
}*/

/* Small caption-like text */
.footer-copyright p,
.footer-copyright a {
  font-size: clamp(0.75rem, 0.85vw, 0.8125rem);
  /* padding-top:25px; */
}

/* Minor adjustments at common breakpoints */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  .features-heading {
    letter-spacing: -0.015em;
  }
}

@media (max-width: 767.98px) {
  /* Tighten vertical rhythm on small screens */
  .section-padding {
    padding: 48px 0;
  }
}

/* Media section: enforce 16:9 on mobile */
@media (max-width: 991.98px) {
  .media-section .video-container {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;
  }
  .media-section .video-left-col {
    position: absolute;
    inset: 0;
  }
  .media-section .video-left-col video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Cards and Explore: reduce image aspect on mobile */
@media (max-width: 991.98px) {
  .cards-section .position-relative[style*="padding-top: 135%"] {
    padding-top: 100% !important;
  }
  .explore-section .position-relative[style*="padding-top: 125%"] {
    padding-top: 100% !important;
  }
}

/* Skyline gallery: reduce height on mobile */
@media (max-width: 991.98px) {
  .section-padding .position-relative[style*="padding-top: 75%"] {
    padding-top: 56.25% !important;
  }
}

/* Minor spacing improvements for hero actions on mobile */
@media (max-width: 575.98px) {
  .hero-banner .btn {
    margin-top: 0.5rem;
  }
}

@media (max-width: 649px) {
  .-translate-y-1\/2 {
    transform: translateX(-30%) translateY(-50%);
  }
}

@media (max-width: 464px) {
  .quote-line-inner {
    text-align: left;
  }
}

/* Mobile: horizontal scroll */
@media (max-width: 575px) {
  .card-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    margin: 0;
  }

  .card-slider > div {
    flex: 0 0 90%;
    max-width: 90%;
    scroll-snap-align: start;
  }
}

@media (min-width: 576px) and (max-width: 990px) {
  .card-slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 0.3rem;
    margin: 0;
  }

  .card-slider > div {
    width: 100%;
  }
}

/* Desktop: 4 columns */
@media (min-width: 991px) {
  .card-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2em;
    margin: 0;
  }

  .card-slider > div {
    flex: 0 0 calc(25% - 2.2em);
    max-width: calc(25% - 2.2em);
  }
}

@media (max-width: 649px) {
  .pageLogo {
    opacity: 1 !important;
    pointer-events: auto;
  }
}
